package com.nursinghome.common.service;

import com.nursinghome.bean.CategoryGoods;
import com.nursinghome.exception.NurisingHomeException;

import java.util.List;

/**
* @author 程硕
* @createDate 2025-04-07 00:52:14
*/
public interface CategoryGoodsService  {
    //新增
    Boolean insert(CategoryGoods categoryGoods) throws NurisingHomeException;
    //修改
    Boolean update(CategoryGoods categoryGoods) throws NurisingHomeException;
    // 删除
    Boolean delete(Integer id) throws NurisingHomeException;
    Boolean deleteByGoodsId(Integer goodsId) throws NurisingHomeException;
    Boolean deleteByCategoryId(Integer categoryId) throws NurisingHomeException;
    //根据id回显数据
    CategoryGoods selectById(Integer id);
    //查询所有
    List<CategoryGoods> selectAll();
}
